/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.generate.entity.GeneratePosition
   Module Description   :

   Date Created      : 2009/12/30
   Original Author   : feeling.wang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.generate.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author feeling.wang
 * 
 */
@Entity(name = "generatePosition")
@Table(name = "EC_GENERATE_POSITION")
public class GeneratePosition extends BaseEntity {
	private static final long serialVersionUID = -4825120717578520565L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_generate_position")
	@SequenceGenerator(name = "seq_ec_generate_position", sequenceName = "SEQ_EC_GENERATE_POSITION")
	@Column(name = "ID")
	private Long id;

	@Column(name = "ADVERTISE_ID")
	private Long advId;

	@Column(name = "MAIN_CATE_ID")
	private Long mainCateId;

	@Column(name = "CHILD_CATE_ID")
	private Long childCateId;

	@Column(name = "ADVERTISE_TARGET", length = 10)
	private String advTarget;

	public Long getAdvId() {
		return advId;
	}

	public String getAdvTarget() {
		return advTarget;
	}

	public Long getChildCateId() {
		return childCateId;
	}

	public Long getId() {
		return id;
	}

	public Long getMainCateId() {
		return mainCateId;
	}

	public void setAdvId(Long advId) {
		this.advId = advId;
	}

	public void setAdvTarget(String advTarget) {
		this.advTarget = advTarget;
	}

	public void setChildCateId(Long childCateId) {
		this.childCateId = childCateId;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setMainCateId(Long mainCateId) {
		this.mainCateId = mainCateId;
	}

}
